import gevent.monkey
gevent.monkey.patch_all()
import os
if not os.path.exists('log'):
    os.mkdir('log')

# gunicorn -c gunicorn.py wsgi:app


debug = True
loglevel = 'debug'
bind = '0.0.0.0:5000'
pidfile = 'log/gunicorn.pid'
logfile = 'log/debug.log'
errorlog = 'log/error.log'
accesslog = 'log/access.log'

# 启动的进程数
workers = 1
threads = 20

worker_class = 'gevent'



